import request from '@/utils/request'

const {
  get: $get,
  post: $post,
  delete: $delete,
  download: $download
} = request

// 查询巡查数据上报列表
export const patrolDataReportPage = data => {
  return $get('/risk/patrolDataReport/page', data)
}


// 查询巡查数据上报详情
export const patrolDataReportDetail = id => {
  return $get('/risk/patrolDataReport/detail/'+ id)
}

// 更新巡查数据上报
export const patrolDataReportUpdate = data => {
  return $post('/risk/patrolDataReport/update', data)
}

// 导出巡查数据上报
export const patrolDataReportExport = (data,fileName) => {
  return $download('/risk/patrolDataReport/export',data, fileName)
}
